// license-header java merge-point
/**
 * This is only generated once! It will never be overwritten.
 * You can (and have to!) safely modify it by hand.
 */
package com.jrsystems.fleet.fault;

import org.hibernate.Criteria;
import org.hibernate.criterion.Restrictions;

/**
 * @see com.jrsystems.fleet.fault.Fault
 */
public class FaultDaoImpl
    extends com.jrsystems.fleet.fault.FaultDaoBase
{
    /**
     * @see com.jrsystems.fleet.fault.FaultDao#searchByCriteria(com.jrsystems.fleet.fault.vo.FaultSearchCriteria)
     */
    protected com.jrsystems.fleet.fault.vo.FaultVO[] handleSearchByCriteria(com.jrsystems.fleet.fault.vo.FaultSearchCriteria searchCriteria)
    {
    	Criteria criteria = getSession().createCriteria(Fault.class);
    	
    	if(searchCriteria.getFaultDate() != null){
    		
    	}
    	
    	if(searchCriteria.getFaultType() != null){
    		criteria.add(Restrictions.eq("faultType", searchCriteria.getFaultType()));
    	}
        // @todo implement public com.jrsystems.fleet.fault.vo.FaultVO[] handleSearchByCriteria(com.jrsystems.fleet.fault.vo.FaultSearchCriteria searchCriteria)
        return null;
    }

}